#ifndef _DHT11_H
#define _DHT11_H

#include "stm32f10x.h"
#include "io_bit.h"
#include "delay.h"
#include "rgb.h"
#include "oled.h"
	
#define   SEND_DATA   PBout(3)
#define   REV_DATA    PBin(3)

extern s16 r,g,b;
extern u8 dht_arrow_flag;
extern u8 oled_flag;
extern u8 arrow_flag;



void DHT_Pin_Config(void);
void DHT_Start(void);
u8 DHT_Ack(void);
u8 DHT_Send_Data(void);
u8 DHT_Inte(float *temp,float *humi);
void DHT_Fun(void);


#endif

